<?php
$tdatasanpham_khac=array();
	$tdatasanpham_khac[".NumberOfChars"]=80; 
	$tdatasanpham_khac[".ShortName"]="sanpham_khac";
	$tdatasanpham_khac[".OwnerID"]="";
	$tdatasanpham_khac[".OriginalTable"]="sanpham_khac";


	
//	field labels
$fieldLabelssanpham_khac = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelssanpham_khac["English"]=array();
	$fieldToolTipssanpham_khac["English"]=array();
	$fieldLabelssanpham_khac["English"]["masanpham"] = "Masanpham";
	$fieldToolTipssanpham_khac["English"]["masanpham"] = "";
	$fieldLabelssanpham_khac["English"]["tensanpham"] = "Tensanpham";
	$fieldToolTipssanpham_khac["English"]["tensanpham"] = "";
	$fieldLabelssanpham_khac["English"]["gia"] = "Gia";
	$fieldToolTipssanpham_khac["English"]["gia"] = "";
	$fieldLabelssanpham_khac["English"]["hinhanh"] = "Hinhanh";
	$fieldToolTipssanpham_khac["English"]["hinhanh"] = "";
	$fieldLabelssanpham_khac["English"]["motangangon"] = "Motangangon";
	$fieldToolTipssanpham_khac["English"]["motangangon"] = "";
	$fieldLabelssanpham_khac["English"]["motachitiet"] = "Motachitiet";
	$fieldToolTipssanpham_khac["English"]["motachitiet"] = "";
	$fieldLabelssanpham_khac["English"]["giakhuyenmai"] = "Giakhuyenmai";
	$fieldToolTipssanpham_khac["English"]["giakhuyenmai"] = "";
	if (count($fieldToolTipssanpham_khac["English"])){
		$tdatasanpham_khac[".isUseToolTips"]=true;
	}
}


	
	$tdatasanpham_khac[".NCSearch"]=true;

	

$tdatasanpham_khac[".shortTableName"] = "sanpham_khac";
$tdatasanpham_khac[".nSecOptions"] = 0;
$tdatasanpham_khac[".recsPerRowList"] = 1;	
$tdatasanpham_khac[".tableGroupBy"] = "0";
$tdatasanpham_khac[".mainTableOwnerID"] = "";
$tdatasanpham_khac[".moveNext"] = 1;




$tdatasanpham_khac[".showAddInPopup"] = false;

$tdatasanpham_khac[".showEditInPopup"] = false;

$tdatasanpham_khac[".showViewInPopup"] = false;


$tdatasanpham_khac[".fieldsForRegister"] = array();

$tdatasanpham_khac[".listAjax"] = false;

	$tdatasanpham_khac[".audit"] = false;

	$tdatasanpham_khac[".locking"] = false;
	
$tdatasanpham_khac[".listIcons"] = true;
$tdatasanpham_khac[".edit"] = true;
$tdatasanpham_khac[".inlineEdit"] = true;
$tdatasanpham_khac[".view"] = true;

$tdatasanpham_khac[".exportTo"] = true;

$tdatasanpham_khac[".printFriendly"] = true;

$tdatasanpham_khac[".delete"] = true;

$tdatasanpham_khac[".showSimpleSearchOptions"] = false;

$tdatasanpham_khac[".showSearchPanel"] = true;


$tdatasanpham_khac[".isUseAjaxSuggest"] = true;

$tdatasanpham_khac[".rowHighlite"] = true;


// button handlers file names

$tdatasanpham_khac[".addPageEvents"] = false;

$tdatasanpham_khac[".arrKeyFields"][] = "masanpham";
$tdatasanpham_khac[".arrKeyFields"][] = "tensanpham";
$tdatasanpham_khac[".arrKeyFields"][] = "gia";
$tdatasanpham_khac[".arrKeyFields"][] = "hinhanh";
$tdatasanpham_khac[".arrKeyFields"][] = "giakhuyenmai";

// use datepicker for search panel
$tdatasanpham_khac[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatasanpham_khac[".isUseTimeForSearch"] = false;

$tdatasanpham_khac[".isUseiBox"] = false;



$tdatasanpham_khac[".isUseInlineAdd"] = true;

$tdatasanpham_khac[".isUseInlineEdit"] = true;
$tdatasanpham_khac[".isUseInlineJs"] = $tdatasanpham_khac[".isUseInlineAdd"] || $tdatasanpham_khac[".isUseInlineEdit"];

$tdatasanpham_khac[".allSearchFields"] = array();

$tdatasanpham_khac[".globSearchFields"][] = "masanpham";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("masanpham", $tdatasanpham_khac[".allSearchFields"]))
{
	$tdatasanpham_khac[".allSearchFields"][] = "masanpham";	
}
$tdatasanpham_khac[".globSearchFields"][] = "tensanpham";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tensanpham", $tdatasanpham_khac[".allSearchFields"]))
{
	$tdatasanpham_khac[".allSearchFields"][] = "tensanpham";	
}
$tdatasanpham_khac[".globSearchFields"][] = "gia";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gia", $tdatasanpham_khac[".allSearchFields"]))
{
	$tdatasanpham_khac[".allSearchFields"][] = "gia";	
}
$tdatasanpham_khac[".globSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatasanpham_khac[".allSearchFields"]))
{
	$tdatasanpham_khac[".allSearchFields"][] = "hinhanh";	
}
$tdatasanpham_khac[".globSearchFields"][] = "giakhuyenmai";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("giakhuyenmai", $tdatasanpham_khac[".allSearchFields"]))
{
	$tdatasanpham_khac[".allSearchFields"][] = "giakhuyenmai";	
}


$tdatasanpham_khac[".googleLikeFields"][] = "masanpham";
$tdatasanpham_khac[".googleLikeFields"][] = "tensanpham";
$tdatasanpham_khac[".googleLikeFields"][] = "gia";
$tdatasanpham_khac[".googleLikeFields"][] = "hinhanh";
$tdatasanpham_khac[".googleLikeFields"][] = "giakhuyenmai";



$tdatasanpham_khac[".advSearchFields"][] = "masanpham";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("masanpham", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "masanpham";	
}
$tdatasanpham_khac[".advSearchFields"][] = "tensanpham";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tensanpham", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "tensanpham";	
}
$tdatasanpham_khac[".advSearchFields"][] = "gia";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gia", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "gia";	
}
$tdatasanpham_khac[".advSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "hinhanh";	
}
$tdatasanpham_khac[".advSearchFields"][] = "motangangon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motangangon", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "motangangon";	
}
$tdatasanpham_khac[".advSearchFields"][] = "motachitiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motachitiet", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "motachitiet";	
}
$tdatasanpham_khac[".advSearchFields"][] = "giakhuyenmai";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("giakhuyenmai", $tdatasanpham_khac[".allSearchFields"])) 
{
	$tdatasanpham_khac[".allSearchFields"][] = "giakhuyenmai";	
}

$tdatasanpham_khac[".isTableType"] = "list";


	

$tdatasanpham_khac[".isDisplayLoading"] = true;

$tdatasanpham_khac[".isResizeColumns"] = false;





$tdatasanpham_khac[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatasanpham_khac[".strOrderBy"] = $gstrOrderBy;
	
$tdatasanpham_khac[".orderindexes"] = array();

$tdatasanpham_khac[".sqlHead"] = "SELECT masanpham,  tensanpham,  gia,  hinhanh,  motangangon,  motachitiet,  giakhuyenmai";
$tdatasanpham_khac[".sqlFrom"] = "FROM sanpham_khac";
$tdatasanpham_khac[".sqlWhereExpr"] = "";
$tdatasanpham_khac[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatasanpham_khac[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatasanpham_khac[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "masanpham";
	$tableKeys[] = "tensanpham";
	$tableKeys[] = "gia";
	$tableKeys[] = "hinhanh";
	$tableKeys[] = "giakhuyenmai";
	$tdatasanpham_khac[".Keys"] = $tableKeys;

//	masanpham
	$fdata = array();
	$fdata["strName"] = "masanpham";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Masanpham"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "masanpham";
	
		$fdata["FullName"]= "masanpham";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["masanpham"]=$fdata;
//	tensanpham
	$fdata = array();
	$fdata["strName"] = "tensanpham";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Tensanpham"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tensanpham";
	
		$fdata["FullName"]= "tensanpham";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["tensanpham"]=$fdata;
//	gia
	$fdata = array();
	$fdata["strName"] = "gia";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Gia"; 
	
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "gia";
	
		$fdata["FullName"]= "gia";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["gia"]=$fdata;
//	hinhanh
	$fdata = array();
	$fdata["strName"] = "hinhanh";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Hinhanh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinhanh";
	
		$fdata["FullName"]= "hinhanh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["hinhanh"]=$fdata;
//	motangangon
	$fdata = array();
	$fdata["strName"] = "motangangon";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Motangangon"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "motangangon";
	
		$fdata["FullName"]= "motangangon";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["motangangon"]=$fdata;
//	motachitiet
	$fdata = array();
	$fdata["strName"] = "motachitiet";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Motachitiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "motachitiet";
	
		$fdata["FullName"]= "motachitiet";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["motachitiet"]=$fdata;
//	giakhuyenmai
	$fdata = array();
	$fdata["strName"] = "giakhuyenmai";
	$fdata["ownerTable"] = "sanpham_khac";
		$fdata["Label"]="Giakhuyenmai"; 
	
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "giakhuyenmai";
	
		$fdata["FullName"]= "giakhuyenmai";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatasanpham_khac["giakhuyenmai"]=$fdata;

	
$tables_data["sanpham_khac"]=&$tdatasanpham_khac;
$field_labels["sanpham_khac"] = &$fieldLabelssanpham_khac;
$fieldToolTips["sanpham_khac"] = &$fieldToolTipssanpham_khac;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["sanpham_khac"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["sanpham_khac"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto17=array();
$proto17["m_strHead"] = "SELECT";
$proto17["m_strFieldList"] = "masanpham,  tensanpham,  gia,  hinhanh,  motangangon,  motachitiet,  giakhuyenmai";
$proto17["m_strFrom"] = "FROM sanpham_khac";
$proto17["m_strWhere"] = "";
$proto17["m_strOrderBy"] = "";
$proto17["m_strTail"] = "";
$proto18=array();
$proto18["m_sql"] = "";
$proto18["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto18["m_column"]=$obj;
$proto18["m_contained"] = array();
$proto18["m_strCase"] = "";
$proto18["m_havingmode"] = "0";
$proto18["m_inBrackets"] = "0";
$proto18["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto18);

$proto17["m_where"] = $obj;
$proto20=array();
$proto20["m_sql"] = "";
$proto20["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto20["m_column"]=$obj;
$proto20["m_contained"] = array();
$proto20["m_strCase"] = "";
$proto20["m_havingmode"] = "0";
$proto20["m_inBrackets"] = "0";
$proto20["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto20);

$proto17["m_having"] = $obj;
$proto17["m_fieldlist"] = array();
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "masanpham",
	"m_strTable" => "sanpham_khac"
));

$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto17["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "tensanpham",
	"m_strTable" => "sanpham_khac"
));

$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto17["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "gia",
	"m_strTable" => "sanpham_khac"
));

$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

$proto17["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "hinhanh",
	"m_strTable" => "sanpham_khac"
));

$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto17["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLField(array(
	"m_strName" => "motangangon",
	"m_strTable" => "sanpham_khac"
));

$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "";
$obj = new SQLFieldListItem($proto30);

$proto17["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLField(array(
	"m_strName" => "motachitiet",
	"m_strTable" => "sanpham_khac"
));

$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "";
$obj = new SQLFieldListItem($proto32);

$proto17["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "giakhuyenmai",
	"m_strTable" => "sanpham_khac"
));

$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto17["m_fieldlist"][]=$obj;
$proto17["m_fromlist"] = array();
												$proto36=array();
$proto36["m_link"] = "SQLL_MAIN";
			$proto37=array();
$proto37["m_strName"] = "sanpham_khac";
$proto37["m_columns"] = array();
$proto37["m_columns"][] = "id";
$proto37["m_columns"][] = "masanpham";
$proto37["m_columns"][] = "tensanpham";
$proto37["m_columns"][] = "gia";
$proto37["m_columns"][] = "hinhanh";
$proto37["m_columns"][] = "motangangon";
$proto37["m_columns"][] = "motachitiet";
$proto37["m_columns"][] = "giakhuyenmai";
$obj = new SQLTable($proto37);

$proto36["m_table"] = $obj;
$proto36["m_alias"] = "";
$proto38=array();
$proto38["m_sql"] = "";
$proto38["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto38["m_column"]=$obj;
$proto38["m_contained"] = array();
$proto38["m_strCase"] = "";
$proto38["m_havingmode"] = "0";
$proto38["m_inBrackets"] = "0";
$proto38["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto38);

$proto36["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto36);

$proto17["m_fromlist"][]=$obj;
$proto17["m_groupby"] = array();
$proto17["m_orderby"] = array();
$obj = new SQLQuery($proto17);

$queryData_sanpham_khac = $obj;
$tdatasanpham_khac[".sqlquery"] = $queryData_sanpham_khac;

$tableEvents["sanpham_khac"] = new eventsBase;

?>
